<?php /* Smarty version 2.6.11, created on 2011-07-04 10:48:50
         compiled from column_add.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'column_add.php', 78, false),array('modifier', 'default', 'column_add.php', 208, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style/css/common.css" type="text/css" />
<LINK href="style/css/ui-lightness/jquery-ui-1.8.8.custom.css" type=text/css rel=stylesheet>
<title>管理区域</title>

<SCRIPT src="style/js/jquery-1.4.2.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/jquery-ui-1.8.6.custom.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/ckeditor/ckfinder/ckfinder.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/ckeditor/ckeditor.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/main.js" type=text/javascript></SCRIPT>

<link href="style/js/Pager.css" rel="stylesheet" type="text/css" />
<script src="style/js/jquery.pager.js" type="text/javascript"></script>
<style>
.text {width:500px;}
</style>
</head>

<body>
<div id="man_zone">
  <div id="tabs">
	<ul>
		<?php if ($this->_tpl_vars['list']): ?><li><a href="#tabs-1">列表</a></li><?php endif; ?>
		<li><a href="#tabs-2">栏目属性</a></li>
	</ul>
 <?php if ($this->_tpl_vars['list']): ?>
 <div id="tabs-1" style="padding-left:0.2em;padding-right:0.4em;">
 <div>
 <span style="padding-left:5px;"><a href="index.php?m=article&amp;a=add&classid=<?php echo $this->_tpl_vars['attr']['classid']; ?>
&wid=<?php echo $this->_tpl_vars['attr']['wid']; ?>
">增加信息</a></span>
  <span>
  预览首页
  预览栏目
 </span>
  <span style="padding-left:50px;">
  <select name="">
  	<option>生成首页</option>
    <option>生成栏目页</option>
    <option>生成栏目页和文章页</option>
  </select>
  <input name="" type="button" value="生成" />
 </span>
  <span style="padding-left:50px;">
  <input name="" type="text" class="size" />
   <select name="">
  	<option>标题</option>
    <option>ID</option>
    <option>内容</option>
  </select>
  <input name="" type="button" value="搜索" />
 </span>
  
 </div>
  <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
      <tr align="center">
        <td>&nbsp;</td>
        <td>ID</td>
        <td>标题</td>
        <td>状态</td>
        <td>发布者</td>
        <td>发布时间</td>
        <td>属性</td>
        <td>操作</td>
      </tr>
      <?php $_from = $this->_tpl_vars['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['val']):
?>
      <tr align="center" class="cbg">
        <td><input name="aid[]" type="checkbox" value="<?php echo $this->_tpl_vars['val']['aid']; ?>
" /></td>
        <td><?php echo $this->_tpl_vars['val']['aid']; ?>
</td>
        <td align="left">
        	<a href="#" style="color:#F90">[预览]</a> 
            <a href="index.php?m=arc&a=article&type=edit&aid=<?php echo $this->_tpl_vars['val']['aid']; ?>
" class="article" aid="<?php echo $this->_tpl_vars['val']['aid']; ?>
"><?php echo $this->_tpl_vars['val']['title']; ?>
</a>
        </td>
       
        <td id="stat_<?php echo $this->_tpl_vars['val']['aid']; ?>
"><?php if ($this->_tpl_vars['val']['html']): ?><span style="color:green;">已审核</span><?php else: ?><span style="color:red;">未审核</span><?php endif; ?></td>
        <td><?php echo $this->_tpl_vars['val']['writer']; ?>
</td>
        <td align="center"><?php echo ((is_array($_tmp=$this->_tpl_vars['val']['posttime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
         <td>
        <!--
            <label>
            头条<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'h' , $this->_tpl_vars['val']['flag'] )): ?> checked="checked"<?php endif; ?> value="h" />
          </label>
          <label>
            推荐<input name="flag[]" type="checkbox" id="checkbox" <?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'c' , $this->_tpl_vars['val']['flag'] )): ?> checked="checked"<?php endif; ?> value="c" />
          </label>
          <label>
            幻灯<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'f' , $this->_tpl_vars['val']['flag'] )): ?> checked="checked" <?php endif; ?> value="f" />
          </label>
          <label>
            特荐<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'a' , $this->_tpl_vars['val']['flag'] )): ?> checked="checked"<?php endif; ?> value="a" />
          </label>
          <label>
            图片<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'p' , $this->_tpl_vars['val']['flag'] )): ?> checked="checked"<?php endif; ?> value="p" />
          </label>
          -->
          <span><a href="#" style="<?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'h' , $this->_tpl_vars['val']['flag'] )): ?>color:green;<?php endif; ?>">头条</a></span>
          <span><a href="#" style="<?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'c' , $this->_tpl_vars['val']['flag'] )): ?>color:green;<?php endif; ?>">推荐</a></span>
          <span><a href="#" style="<?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'a' , $this->_tpl_vars['val']['flag'] )): ?>color:green;<?php endif; ?>">特荐</a></span>
        </td>
        <td align="center"><a href="index.php?m=arc&amp;a=delete&amp;aid=<?php echo $this->_tpl_vars['val']['aid']; ?>
&ajax=1" class="delete" style="color:red;">删除</a></td>
      </tr>
      <?php endforeach; endif; unset($_from); ?>
      <tr>
        <td align="center"></td>
        <td colspan="7" align="right">
        	<label><input name="" type="checkbox" value="" id="checkAll" />全选/反选</label>
        	<input name="" type="button" value="审核" />
            <input name="" type="button" value="删除" />
            <input name="" type="button" value="移动" />
            <input name="" type="button" value="复制" />
        </td>
        </tr>
        <tr>
        <td colspan="8" align="left" id="pager">

        </td>
        </tr>
    </table>
    
 </div>
<?php endif; ?>
 <div id="tabs-2" style="padding-left:0.2em;padding-right:0.4em;">
 <form method="post" action="">
    <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
      <!--<tr>
        <td>所属父栏目</td>
        <td><label for="textfield"></label>
          <input type="text" name="bclassid" id="bclassid" value="<?php echo $this->_tpl_vars['attr']['bclassid']; ?>
" /></td>
      </tr> -->
      <tr>
        <td>栏目名称</td>
        <td><input type="text" class="text" name="classname" id="classname" value="<?php echo $this->_tpl_vars['attr']['classname']; ?>
" />(多个栏目用半角,号隔开)</td>
      </tr>
      
      <tr>
        <td>栏目别名</td>
        <td><input type="text" class="text" name="bname" id="bname" value="<?php echo $this->_tpl_vars['attr']['bname']; ?>
" />(多个别名用半角,号隔开)</td>
      </tr>
      <tr>
        <td>系统模型</td>
        <td>
        <select name="modid">
        <?php $_from = $this->_tpl_vars['mode']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['val']):
?>
        <option value="<?php echo $this->_tpl_vars['val']['mid']; ?>
"<?php if ($this->_tpl_vars['val']['mid'] == $this->_tpl_vars['attr']['modid']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['val']['mname']; ?>
</option>
        <?php endforeach; endif; unset($_from); ?>
        </select>
        </td>
      </tr>
       <tr>
        <td>所属栏目</td>
        <td>
        <select name="bclassid">
          <option value="0">顶级栏目</option>
          <?php $_from = $this->_tpl_vars['column']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['val']):
?>
          <?php if ($this->_tpl_vars['val']['level'] == 0): ?><option value="<?php echo $this->_tpl_vars['val']['classid']; ?>
"><?php echo $this->_tpl_vars['val']['classname']; ?>
</option><?php endif; ?>
          <?php endforeach; endif; unset($_from); ?>
        </select>
        </td>
      </tr>
      <tr>
        <td>栏目类型</td>
        <td>
        <select name="classtype">
          <option value="n">内部栏目</option>
          <option value="w">外部栏目</option>
        </select>
        </td>
      </tr>
      <tr>
        <td>是否终级栏目</td>
        <td>
        <select name="islast">
          <option value="1">是</option>
          <option value="0">否</option>
        </select>
        </td>
      </tr>
      <tr>
        <td>栏目存放文件夹</td>
        <td><input type="text" class="text" name="classpath" id="classpath" value="<?php echo $this->_tpl_vars['attr']['classpath']; ?>
" />(默认为拼音缩写)</td>
      </tr>
      
      <tr>
        <td>绑定域名</td>
        <td><input type="text" class="text" name="domain" id="domain" value="<?php echo $this->_tpl_vars['attr']['domain']; ?>
" /></td>
      </tr>
      <tr>
        <td>栏目缩略图</td>
        <td><input type="text" class="text" name="classimg" id="classimg" value="<?php echo $this->_tpl_vars['attr']['classimg']; ?>
" /></td>
      </tr>
      <tr>
        <td>SEO标题</td>
        <td><input type="text" class="text" name="classtitle" id="classtitle" value="<?php echo $this->_tpl_vars['attr']['classtitle']; ?>
" /></td>
      </tr>
      <tr>
        <td>页面关键字</td>
        <td><input type="text" class="text" name="classkeyword" id="classkeyword" value="<?php echo $this->_tpl_vars['attr']['classkeyword']; ?>
" /></td>
      </tr>
      <tr>
        <td>栏目简介</td>
        <td><textarea name="intro"  cols="intro" rows="4" style="width:500px;"><?php echo $this->_tpl_vars['attr']['intro']; ?>
</textarea></td>
      </tr>
      <tr>
        <td>
          列表模板
       </td>
        <td><input type="text" class="text" name="listtemp" id="listtemp" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['attr']['listtemp'])) ? $this->_run_mod_handler('default', true, $_tmp, "list.php") : smarty_modifier_default($_tmp, "list.php")); ?>
" /></td>
      </tr>
      <tr>
        <td>内容模板</td>
        <td><input type="text" class="text" name="contenttemp" id="contenttemp" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['attr']['contenttemp'])) ? $this->_run_mod_handler('default', true, $_tmp, "article.php") : smarty_modifier_default($_tmp, "article.php")); ?>
" /></td>
      </tr>
      <tr>
        <td>栏目首页默认文件名</td>
        <td><input type="text" class="text" name="defaultname" id="defaultname" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['attr']['defaultname'])) ? $this->_run_mod_handler('default', true, $_tmp, "index.html") : smarty_modifier_default($_tmp, "index.html")); ?>
" /></td>
      </tr>
      <tr>
        <td>栏目命名规则</td>
        <td><input type="text" class="text" name="classextension" id="classextension" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['attr']['classextension'])) ? $this->_run_mod_handler('default', true, $_tmp, '{$newsurl}/index_{$page}.html') : smarty_modifier_default($_tmp, '{$newsurl}/index_{$page}.html')); ?>
" /></td>
      </tr>
      <tr>
        <td>内容页命名规则</td>
        <td><input type="text" class="text" name="contentextension" id="contentextension" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['attr']['contentextension'])) ? $this->_run_mod_handler('default', true, $_tmp, '{$newsurl}/{$aid}.html') : smarty_modifier_default($_tmp, '{$newsurl}/{$aid}.html')); ?>
" /></td>
      </tr>
      <tr>
        <td>
          内容
       </td>
        <td><textarea name="content" cols="8" rows="6" style="width:500px;"><?php echo $this->_tpl_vars['attr']['content']; ?>
</textarea></td>
      </tr>
      <tr>
        <td>
          <input type="hidden" name="classid" id="classid" value="<?php echo $this->_tpl_vars['attr']['classid']; ?>
" />
          <input type="submit" name="" id="submit" value="提交" />
       </td>
        <td>&nbsp;</td>
      </tr>
    </table>
     </form>
 </div>
 </div>
</div>

<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'content' );
//]]>
CKFinder.SetupCKEditor(CKEDITOR, 'style/js/ckeditor/ckfinder/');
if (parent) setTimeout(function(){parent.restIframe();},500);
</script>
<div id="articleBox" style="display:none;">
</div>
</body>
</html>